<?php

namespace privatearea;

use think\Route;

// 用户端
Route::group('privatearea/:ver', function ()
{
    // ###########  v1   #################
    // 获取验证码
    Route::get('/get_code', 'privatearea/:ver.Login/getCode');
    // 登录
    Route::post('/login', 'privatearea/:ver.Login/login');
    // 档案列表
    Route::get('/recodes', 'privatearea/:ver.Recode/getList');
    // 添加或编辑档案
    Route::post('/recode_add_or_edit', 'privatearea/:ver.Recode/recodeAddOrEdit');
    // 商品介绍
    Route::get('/good_intro', 'privatearea/:ver.Good/goodIntro');
    // 商品信息
    Route::get('/good_info', 'privatearea/:ver.Good/goodInfo');
    // 提交咨询信息
    Route::post('/submit_info', 'privatearea/:ver.Question/submitQuestionInfo');
    // 商品信息【下单确认页】
    Route::get('/order_check', 'privatearea/:ver.Order/orderCheck');
    // 下单支付
    Route::post('/order_pay', 'privatearea/:ver.Order/orderPay');
    // 订单详情
    Route::get('/order_detail', 'privatearea/:ver.Order/orderDetail');
    // 订单列表
    Route::get('/orders', 'privatearea/:ver.Order/orderList');
    // 获取订单支付状态
    Route::get('/get_order_status', 'privatearea/:ver.Order/getOrderStatus');
    // 个人中心
    Route::get('/personal', 'privatearea/:ver.User/personal');
    // 用户咨询信息
    Route::get('/question_info', 'privatearea/:ver.Question/questionInfo');
    // 上传
    Route::post('/upload', 'privatearea/:ver.Upload/upload');
    // 用户咨询信息
    Route::get('/answer_result', 'privatearea/:ver.Question/getQuestionAnswer');
    // 下单支付
    Route::post('/close_order', 'privatearea/:ver.Order/closeOrder');
});
// 占星师端
Route::group('privatearea/astro', function ()
{
    // 获取验证码
    Route::get('/get_code', 'privatearea/astro.Login/getCode');
    // 登录
    Route::post('/login', 'privatearea/astro.Login/login');
    // 用户咨询信息
    Route::get('/question_info', 'privatearea/astro.Question/questionInfo');
    // 用户咨询信息
    Route::post('/submit_answer', 'privatearea/astro.Question/submitAnswer');
    // 上传
    Route::post('/upload', 'privatearea/astro.Upload/upload');
});
Route::group('privatearea/astro/:ver', function ()
{
    // 获取验证码
    Route::get('/get_code', 'privatearea/astro.:ver.Login/getCode');
    // 登录
    Route::post('/login', 'privatearea/astro.:ver.Login/login');
    // 钱包-收益明细
    Route::get('/earnings/list', 'privatearea/astro.:ver.Earnings/list');
    // 结算历史(无分页)
    Route::get('/earnings/get_withdraw_list', 'privatearea/astro.:ver.Earnings/getWithdrawalList');
    // 提现列表
    Route::get('/earnings/get_withdraw_history_list', 'privatearea/astro.:ver.Earnings/getWithdrawHistoryList');
    // 申请提现信息
    Route::get('earnings/get_apply_withdraw_info', 'privatearea/astro.:ver.Earnings/getApplyWithdrawInfo');
    // 申请/取消申请提现
    Route::post('earnings/apply_withdraw', 'privatearea/astro.:ver.Earnings/applyWithdraw');


});
// 私域 实物销售
Route::group('pri_mall/:ver', function ()
{
    // 获取验证码
    Route::get('/login/get_code', 'privatearea/mall.:ver.Login/getCode');
    // 登录
    Route::post('/login/mobile', 'privatearea/mall.:ver.Login/mobile');
    // 个人中心
    Route::get('/user/center', 'privatearea/mall.:ver.User/center');
    // 商品列表
    Route::get('/goods/list', 'privatearea/mall.:ver.Goods/index');
    // 商品详情
    Route::get('/goods/detail', 'privatearea/mall.:ver.Goods/detail');
    // 商品介绍信息
    Route::get('/goods/good_intro', 'privatearea/mall.:ver.Goods/goodIntro');
    // 下单支付
    Route::post('/order/pay', 'privatearea/mall.:ver.Order/orderPay');
    // 订单继续支付
    Route::post('/order/pay_again', 'privatearea/mall.:ver.Order/payAgain');
    // 订单列表
    Route::get('/order/list', 'privatearea/mall.:ver.Order/orderList');
    // 订单详情
    Route::get('/order/detail', 'privatearea/mall.:ver.Order/orderDetail');
    // 地址列表
    Route::get('/address/list', 'privatearea/mall.:ver.AddressManage/index');
    // 添加/编辑地址
    Route::post('/address/add_or_edir', 'privatearea/mall.:ver.AddressManage/addOrEdit');
    // 删除地址
    Route::delete('/address/del', 'privatearea/mall.:ver.AddressManage/del');
    // 确认收货
    Route::put('/order/detail', 'privatearea/mall.:ver.Order/confirmOrder');
    // 快递信息
    Route::get('/order/kd_detail', 'privatearea/mall.:ver.Order/orderKdInfo');

    //顺丰路由通知
    Route::any('/sf_notify/route', 'privatearea/mall.:ver.SfNotify/routeStatus');
    //顺丰订单通知
    Route::any('/sf_notify/order_status', 'privatearea/mall.:ver.SfNotify/orderStatus');
    //顺丰运费通知
    Route::any('/sf_notify/express_fee', 'privatearea/mall.:ver.SfNotify/expressFee');

    //  私域商城 退款详情
    Route::get('/order/refund_info', 'privatearea/mall.:ver.Order/getRefundInfo');
    //  私域商城 提交退款申请
    Route::post('/order/refund_info', 'privatearea/mall.:ver.Order/applyRefund');
    //  私域商城 取消退款
    Route::delete('/order/refund_info', 'privatearea/mall.:ver.Order/cancelRefund');
});
// 私域
Route::get('f/:sn', 'privatearea/web.Web/questionInfo');//登录
Route::get('r/:sn', 'privatearea/web.Web/questionInfo');//登录

Route::get('m/:sn', 'privatearea/web.Mall/index');// 私域商城短链